import httpInstance from "@/utils/http"

/**
 * 生成-订单(结算页)
 * @returns 
 */
export const getCheckInfoAPI = () =>{
  return httpInstance({
    url: '/member/order/pre',
    method: 'GET'
  })
}

/**
 * 提交订单，准备支付
 * @param {*} data 一个对象
 * @returns 
 */
export const createOrderAPI = (data)=>{
  return httpInstance({
    url: '/member/order',
    method: 'POST',
    data
  })
}